package com.yunhe.common.model.company;


import java.io.Serializable;
import java.util.List;

public class Employee implements Comparable<Employee>, Serializable {
    private static final long serialVersionUID = 8857703751045289975L;
    private Long id;
    private String name;
    private String phone;
    private String title;
    private String password;
    private String sex;
    private String sexTitle;
    private String mail;
    private String activity;

    private String activityTitle;
    private String createTime;
    private String updateTime;

    private String creator;
    private String lastLoginTime;
    private String lastLoginSystem;
    private String lastLoginSystemTitle;
    private String remark;
    private Long lastAccessProject;
    private String lastAccessProjectTitle;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }


    public String getActivityTitle() {
        return activityTitle;
    }

    public void setActivityTitle(String activityTitle) {
        this.activityTitle = activityTitle;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSexTitle() {
        return sexTitle;
    }

    public void setSexTitle(String sexTitle) {
        this.sexTitle = sexTitle;
    }

    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginSystem() {
        return lastLoginSystem;
    }

    public void setLastLoginSystem(String lastLoginSystem) {
        this.lastLoginSystem = lastLoginSystem;
    }

    public String getLastLoginSystemTitle() {
        return lastLoginSystemTitle;
    }

    public void setLastLoginSystemTitle(String lastLoginSystemTitle) {
        this.lastLoginSystemTitle = lastLoginSystemTitle;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getLastAccessProject() {
        return lastAccessProject;
    }

    public void setLastAccessProject(Long lastAccessProject) {
        this.lastAccessProject = lastAccessProject;
    }

    public String getLastAccessProjectTitle() {
        return lastAccessProjectTitle;
    }

    public void setLastAccessProjectTitle(String lastAccessProjectTitle) {
        this.lastAccessProjectTitle = lastAccessProjectTitle;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public int compareTo(Employee o) {
        if (this.createTime == null) {
            return -1;
        } else if (o.getCreateTime() == null) {
            return 1;
        }
        return this.createTime.compareTo(o.getCreateTime());
    }
}
